import { RouteRecordRaw } from "vue-router";
import { hadAuthMeta } from "../config";
import Layout from "/@/page/Layout/index.vue";
import adminRoutes from "/@/views/admin/router";
const routes: RouteRecordRaw[] = [
  {
    path: "/index",
    name: "Index",
    redirect: "/index/index",
    meta: hadAuthMeta,
    component: Layout,
    children: [
      {
        path: "index",
        name: "首页",
        meta: hadAuthMeta,
        component: () => import("/@/views/index/index.vue"),
      },
    ],
  },
  ...adminRoutes,
];
export default routes;
